package com.googlecode.microanalyst.designer.edit;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.GroupRequest;

import com.googlecode.microanalyst.designer.model.AnalysisConnection;
import com.googlecode.microanalyst.designer.model.commands.ConnectionCommand;


public class AnalysisConnectionEditPolicy extends
		org.eclipse.gef.editpolicies.ConnectionEditPolicy {

	protected Command getDeleteCommand(GroupRequest request) {
		ConnectionCommand c = new ConnectionCommand();
		c.setConnection((AnalysisConnection) getHost().getModel());
		return c;
	}

}
